<!DOCTYPE html>
<html id="clientsaa">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>客户管理</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">
    <link href="css/plugins/iCheck/custom.css" rel="stylesheet">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox">
                    <div class="ibox-content">
                        <span class="text-muted small pull-right"><button type="button" id="refresh" class="btn btn-w-m btn-danger">刷新页面</button></span>
                        <h2>客户管理</h2>
                        <div class="clients-list">
                            <ul class="nav nav-tabs">
                                <span class="pull-right small text-muted"><span id="num"></span> 个客户</span>
                                <li class="active"><a data-toggle="tab" href="#tab-1"><i class="fa fa-user"></i> 联系人</a>
                                </li>
                                <!-- <li class=""><a data-toggle="tab" href="#tab-2"><i class="fa fa-briefcase"></i> 公司</a>
                                </li> -->
                            </ul>
                            <div class="tab-content">
                                <div id="tab-1" class="tab-pane active">
                                    <div class="full-height-scroll">
                                        <div class="table-responsive">
                                            <table class="table table-striped table-hover">
                                                <tbody id="clients">
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="modal inmodal" id="myModal" tabindex="-1" role="dialog" aria-hidden="true" style="display: none;">
        <div class="modal-dialog modal-lg" width="700">
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>客户添加</h5>
                            <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span>
                            </button>
                        </div>
                        <div class="ibox-content">
                            <form class="form-horizontal m-t" id="commentForm" data="false" onsubmit="return false">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">姓名：</label>
                                    <div class="col-sm-8">
                                        <input id="name" name="name" minlength="2" type="text" class="form-control" required="" aria-required="true">
                                        <input id="id" name="id" minlength="2" type="hidden" class="form-control" required="" aria-required="true">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">电话：</label>
                                    <div class="col-sm-8">
                                        <input type="text" id="phone" class="form-control" name="phone" minlength="11" maxlength="11" required="" aria-required="true" onkeyup="this.value=this.value.replace(/\/D/g," value="">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">客户详细描述：</label>
                                    <div class="col-sm-8">
                                        <textarea name="describe" id="describe" class="form-control" required="" aria-required="true">
                                        </textarea>
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">性别</label>
                                    <div class="col-sm-9">
                                        <div class="radio i-checks checkbox-inline">
                                            <label>
                                                <input type="radio" checked="true" value="1" name="sex"> <i></i> 男</label>
                                        </div>
                                        <div class="radio i-checks checkbox-inline">
                                            <label>
                                                <input type="radio" value="2" name="sex"> <i></i>女</label>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">客户类型</label>
                                    <div class="col-sm-9">
                                        <div class="radio i-checks checkbox-inline">
                                            <label>
                                                <input type="radio" checked="true" value="1" name="type"> <i></i> 客户</label>
                                        </div>
                                        <div class="radio i-checks checkbox-inline">
                                            <label>
                                                <input type="radio" value="2" name="type"> <i></i>供应商</label>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">添加为常用客户</label>
                                    <div class="col-sm-9">
                                        <div class="radio i-checks checkbox-inline">
                                            <label>
                                                <input type="radio" checked="true" value="1" name="is_often"> <i></i> 普通客户</label>
                                        </div>
                                        <div class="radio i-checks checkbox-inline">
                                            <label>
                                                <input type="radio" value="2" name="is_often"> <i></i>常用客户</label>
                                        </div>
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">省份</label>
                                    <div class="col-sm-4">
                                        <select id="region" class="form-control m-b" name="region">
                                        </select>
                                    </div>
                                    <label class="col-sm-2 control-label">地区</label>
                                    <div class="col-sm-4">
                                        <select id="address" class="form-control m-b" name="address">
                                        </select>
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"></label>
                                    <div class="col-sm-9" id="submit">
                                        <button type="submit" class="btn btn-block btn-outline btn-primary">保存信息</button>
                                    </div>
                                    <label class="col-sm-1 control-label"></label>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 全局js -->
        <script src="js/jquery.min.js?v=2.1.4"></script>
        <script src="js/bootstrap.min.js?v=3.3.6"></script>
        <script src="js/common.js"></script>
        <script src="js/plugins/validate/jquery.validate.min.js"></script>
        <script src="js/plugins/validate/messages_zh.min.js"></script>
        <script src="js/demo/form-validate-demo.js"></script>
        <script src="js/plugins/iCheck/icheck.min.js"></script>
        <script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
        <!-- 自定义js -->
        <script>
        $(function() {
            $('.full-height-scroll').slimScroll({
                height: '100%'
            });
            $('.i-checks').iCheck({
                                checkboxClass: 'icheckbox_square-green',
                                radioClass: 'iradio_square-green',
                            });
        });
        </script>
        <script src="js/plugins/layer/layer.min.js"></script>
        <script src="js/vue.js"></script>
        <script src="js/clients.js"></script>
</body>

</html>
